package com.db.bankapp.exception;

/**
 * Created by Student on 20.08.2014.
 */
public class NotEnoughFundsException extends BankException {
    private int amount;

    public int getAmount() {
        return amount;
    }

    public NotEnoughFundsException(int amount) {
        this.amount = amount;
    }

    public NotEnoughFundsException(String message, int amount) {
        super(message);
        this.amount = amount;
    }

    public NotEnoughFundsException(String message, Throwable cause, int amount) {
        super(message, cause);
        this.amount = amount;
    }

    public NotEnoughFundsException(Throwable cause, int amount) {
        super(cause);
        this.amount = amount;
    }

    public NotEnoughFundsException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, int amount) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.amount = amount;
    }
}
